package com.dyh.quickdemo.projectReactor;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

@Service
@Slf4j
public class DasRepository {

    public Object getById(long l){
        log.info("getById {}",l);
        return l*2;
    }

    public List list(){
        log.info("list");
       List res = new ArrayList();
       res.add(1);
       res.add(2);
       res.add(3);
       return res;
    }

    public int insert(int i){
      log.info("插入数据 {}",i);
      return 1;
    }
}
